<?php
class SystemController extends NodeController {
	
	public function config() {
		$config = require_once 'base.php';
		$this->view ()->assign ( 'config', $config );
		$this->view ()->assign ( "get_magic_quotes_gpc", get_magic_quotes_gpc () );
		$ini = ini_get_all ();
		$this->view ()->assign ( 'zone', $ini ['date.timezone'] ['local_value'] );
		$this->view ()->assign ( 'sessionpath', $ini ['session.save_path'] ['local_value'] );
		$this->view ()->assign ( 'sessionstart', $ini ['session.auto_start'] ['local_value'] );
		$this->view ()->assign ( 'pdosocket', $ini ['pdo_mysql.default_socket'] ['local_value'] );
		$this->view ()->assign ( 'ini', $ini );
		$system = array ('sys' => php_uname (), 'phpapi' => php_sapi_name (), 'phpversion' => PHP_VERSION, 'phppath' => DEFAULT_INCLUDE_PATH, 'httphost' => $_SERVER ['HTTP_HOST'], 'cpus' => $_SERVER ['PROCESSOR_IDENTIFIER'] );
		$this->view ()->assign ( 'system', $system );
		$this->view ()->display ( "file:system/config.tpl" );
	}
}
